FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g3ec1ee7.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g3ec1ee7.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=3ec1ee7 OS_GIT_VERSION=4.10.0-202202160023.p0.g3ec1ee7.assembly.stream-3ec1ee7 SOURCE_DATE_EPOCH=1643138744 SOURCE_GIT_COMMIT=3ec1ee7dd91d5a1193745984c2c247ba3f2518d3 SOURCE_GIT_TAG=v3.11.0-1893-g3ec1ee7dd SOURCE_GIT_URL=https://github.com/openshift/coredns 
WORKDIR /go/src/github.com/coredns/coredns
COPY . .
RUN GO111MODULE=on GOFLAGS=-mod=vendor go build -o coredns .

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g3ec1ee7.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g3ec1ee7.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=3ec1ee7 OS_GIT_VERSION=4.10.0-202202160023.p0.g3ec1ee7.assembly.stream-3ec1ee7 SOURCE_DATE_EPOCH=1643138744 SOURCE_GIT_COMMIT=3ec1ee7dd91d5a1193745984c2c247ba3f2518d3 SOURCE_GIT_TAG=v3.11.0-1893-g3ec1ee7dd SOURCE_GIT_URL=https://github.com/openshift/coredns 
COPY --from=builder /go/src/github.com/coredns/coredns/coredns /usr/bin/

ENTRYPOINT ["/usr/bin/coredns"]

LABEL \
        io.k8s.display-name="CoreDNS" \
        io.k8s.description="CoreDNS delivers the DNS and Discovery Service for a Kubernetes cluster." \
        maintainer="dev@lists.openshift.redhat.com" \
        name="openshift/ose-coredns" \
        com.redhat.component="coredns-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="DNS" \
        release="202202160023.p0.g3ec1ee7.assembly.stream" \
        io.openshift.build.commit.id="3ec1ee7dd91d5a1193745984c2c247ba3f2518d3" \
        io.openshift.build.source-location="https://github.com/openshift/coredns" \
        io.openshift.build.commit.url="https://github.com/openshift/coredns/commit/3ec1ee7dd91d5a1193745984c2c247ba3f2518d3" \
        version="v4.10.0"

